import glob
import os


for ui in glob.glob("res/ui/*.ui"):
    ui = ui[ui.rfind("\\") + 1:]
    py = ui[:-2] + "py"
    print(f"{ui} --> {py}")
    pyuic = r"c:\Users\cy2\AppData\Roaming\Python\Python310\Scripts\pyuic5.exe"
    os.system(f'{pyuic} -o ./res/ui/{py} ./res/ui/{ui}')
